<template>
	<view class="pages">
		<!-- <view class="card">
			<vie class="card_title">1、氯气的贮存和气瓶的使用</vie>
			<uParse :content="htmlString" />
			
			<view class="ab">[使用氯气钢瓶，必须有称重衡器，并装有膜片压力表，调节 阀门等装置，操作中要保持瓶内压力大于使用侧压力。, 严禁 将油类、棉纱</view>
			<vie class="sm_title">事故原因</vie>
			<view class="ab">[设备设施缺陷，管理规章制度不完整，违章作业]</view>
			<vie class="sm_title">事故后果</vie>
			<view class="ab">[中毒窒息，其他爆炸，其他爆炸][死亡]</view>
		</view> -->
		<view class="card" v-for="(item,index) in dataList" :key="index">
			<vie class="card_title">{{item.title}}</vie>
			<uParse :content="item.notify" />
		</view>
	</view>
</template>

<script>
	import API from '../../common/api.js';
	import uParse from '../../components/uParse/src/wxParse.vue'
	
	export default {
		components: {
			uParse
		},
		data(){
			return{
				fxpoint_id: 1,
				dataList: []
			}
		},
		onLoad() {
			var fxpoint_id = uni.getStorageSync("ssp_point");
			if(!!fxpoint_id){
				this.fxpoint_id = fxpoint_id;
			}
			console.log(fxpoint_id)
			this.fxnotifyList()
		},
		methods:{
			fxnotifyList(){
				var that = this;
				uni.request({
					url:API.fxnotifyList+"?where={fxpoint_id:"+that.fxpoint_id+"}",
					method:"GET",
					header:API.get_head(),
					success: (res) => {
						console.log("getMoreSubUser==>", res);
						that.dataList = res.data.rows;
					},
					fail: () => {
						uni.showToast({
							title:"加载失败",
							icon:'none'
						})
					}
				});
			}
		}
	}
</script>

<style>
	page{overflow: auto;}
	.pages{padding-top:10upx;}
	.card{margin:10upx;border-radius:10upx;margin-top:0;padding:10upx;background:#FFFFFF;}
	.card_title{
		font-size:40upx;
		font-weight:700;color:#333333;
		margin-bottom:30px;
	}
	.sm_title{
		font-size:36upx;
		font-weight:700;color:#333333;
		margin-bottom:20px;
	}
	.ab{
		color: #797979;
		margin-bottom:50px;
	}
</style>
